package com.xingkeduo.configuration.websocket;


/**
 * @author chi  2019-05-24 20:54
 **/

public class WebsocketMessageResponse<T> {

    /**
     * 发送类型
     */
    private MessageTypeEnum messageTypeEnum;
    /**
     * 门店id
     */
    private String storeId;
    /**
     * 数据
     */
    private T data;


    public enum  MessageTypeEnum {
        //下单屏登陆
        LOGIN,
        //叫号
        ANNOUNCE_NUMBER,
        //优惠券
        MARKETING,
        //库存相关
        WORKPAD
    }

    public WebsocketMessageResponse(MessageTypeEnum messageTypeEnum, String storeId, T data) {
        this.messageTypeEnum = messageTypeEnum;
        this.storeId = storeId;
        this.data = data;
    }

    public MessageTypeEnum getMessageTypeEnum() {
        return messageTypeEnum;
    }

    public void setMessageTypeEnum(MessageTypeEnum messageTypeEnum) {
        this.messageTypeEnum = messageTypeEnum;
    }

    public String getStoreId() {
        return storeId;
    }

    public void setStoreId(String storeId) {
        this.storeId = storeId;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
